package com.astrob.model;

import android.view.View;

public class SpecialTypeBean {
	private int resId;
	private String strText;
	private int id;
	private boolean selected;
	private int selectedClr;
	
	private onGridViewItemClickListener onClickListener;
	private onQTItemClickListener onQTClick;

	public void setOnQTClick(onQTItemClickListener onQTClick) {
		this.onQTClick = onQTClick;
	}

	public SpecialTypeBean(int index, int resourceid, String strtext, int selectedClr, onQTItemClickListener click){
		selected = false;
		id = index;
		resId = resourceid;
		strText = strtext;
		onQTClick = click;
		this.selectedClr = selectedClr;
		onClickListener = new onGridViewItemClickListener() {
			@Override
			public void ongvItemClickListener(View v) {
				onQTClick.onClick(v, id);
			}
		};
	}
	public interface onGridViewItemClickListener  
    {  
        public abstract void ongvItemClickListener(View v);  
    }
	public interface onQTItemClickListener  
    {  
        public abstract void onClick(View v, int id);  
    }
	public int getResId() {
		return resId;
	}

	public void setResId(int resId) {
		this.resId = resId;
	}
	
	public String getStrText() {
		return strText;
	}
	
	public void setStrText(String str) {
		strText = str;
	}

	public onGridViewItemClickListener getOnClickListener() {
		return onClickListener;
	}

	public void setOnClickListener(onGridViewItemClickListener onClickListener) {
		this.onClickListener = onClickListener;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public boolean isSelected() {
		return selected;
	}

	public void setSelected(boolean selected) {
		this.selected = selected;
	}
	public int getSelectedClr(){
		return this.selectedClr;
	}
}
